import { axios } from '@/utils/request'
// 参保人员管理
export function getTablePage(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/pageInsureStaff',
    method: 'post',
    data: parameter
  })
}
export function exportInsureStaffInfo(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/exportInsureStaffInfo',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function selectEnterpriseOrgTreeStaff(parameter) {
  return axios({
    url: '/sys/hr/enterprise/org/selectEnterpriseOrgTreeStaff',
    method: 'post',
    data: parameter
  })
}
export function listInsureStaffSelected(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/listInsureStaffSelected',
    method: 'post',
    data: parameter
  })
}
export function listInsureCase(id) {
  return axios({
    url: '/sys/hr/insure/case/listInsureCase/' + id,
    method: 'get'
  })
}
export function addInsureStaff(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/addInsureStaff',
    method: 'post',
    data: parameter
  })
}
export function downloadInsureBaseExcelTemplate(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/downloadInsureBaseExcelTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function importInsureBase(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/importInsureBase',
    method: 'post',
    data: parameter
  })
}
export function downloadInsureStopExcelTemplate(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/downloadInsureStopExcelTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function importInsurePayStatus(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/importInsurePayStatus',
    method: 'post',
    data: parameter
  })
}
export function queryInsureStaffBaseInfo(id) {
  return axios({
    url: '/sys/hr/insure/staff/queryInsureStaffBaseInfo/' + id,
    method: 'get',
  })
}
export function adjustInsureBase(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/adjustInsureBase',
    method: 'post',
    data: parameter
  })
}
export function updateInsureBase(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/updateInsureBase',
    method: 'post',
    data: parameter
  })
}
export function joinInsure(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/joinInsure',
    method: 'post',
    data: parameter
  })
}
export function deleteInsureStaff(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/deleteInsureStaff',
    method: 'post',
    data: parameter
  })
}
export function updateInsurePayStatus(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/updateInsurePayStatus',
    method: 'post',
    data: parameter
  })
}
export function stopInsurePayBatch(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/stopInsurePayBatch',
    method: 'post',
    data: parameter
  })
}
export function joinInsureBatch(parameter) {
  return axios({
    url: '/sys/hr/insure/staff/joinInsureBatch',
    method: 'post',
    data: parameter
  })
}
